(Rust) Biased PRNG
References
Fixing random BLS key generation for testing
https://github.com/libra/libra/pull/578
no_std hacks with marlin
https://github.com/w3f/schnorrkel/issues/31
https://github.com/dalek-cryptography/merlin/pull/42#issuecomment-508227421
Audit reports
https://github.com/zcash-hackworks/sapling-crypto/blob/5687acfaf83438a993fccc14ab487b67e4afbc68/src/jubjub/fs.rs#L46
https://gyazo.com/12434eefe6f1172310b85b767c9f7037
Fs: offering a clean interface into these elements
FsRepr:handling the necessary lower-level functionality for these elements.
Fsに対するrandはFsReprにおけるrngに依存している。FsReprにおけるrngはFsのrand性に対してなんの影響も与えないので、privateにするべき。
https://gyazo.com/8174ae518387e89ebd62488d958ecc15
https://gyazo.com/2ad65ac68773cbdd3ca05439b1c6c738
librustzcash_sapling_generate_r generates alpha from 64 rather than 80 bytes of randomness
https://github.com/zcash/librustzcash/issues/43
#Rust #Cryptography